const SyncHook = require('./syncHook');

let queue = new SyncHook(['param1']);

queue.tap('event 1', function(param1) {
    console.log(param1, 1);
});

queue.tap('event 2', function(param1) {
    console.log(param1, 2);
});

queue.tap('event 3', function(param1) {
    console.log(param1, 3);
});

queue.call('hello');